package com.cskaoyan.controller;

import com.cskaoyan.bean.SearchHistory;
import com.cskaoyan.service.AdminService;
import com.cskaoyan.vo.AdminVo;
import com.cskaoyan.vo.BaseRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2021/4/9 - 21:18
 */
@RestController
public class AdminController {

    @Autowired
    AdminService adminService;
    @RequestMapping("admin/admin/list")
    public BaseRespVo list(Integer page, Integer limit, String sort ,String order){

        AdminVo adminVo = adminService.query(page,limit,sort,order);
        return BaseRespVo.ok(adminVo);

    }
}
